package com.yunti.springboot.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

@Data
public class ScoreRule implements Serializable {
    /**  | 表字段 id */
    @TableId(value = "id", type = IdType.AUTO)
    @NotNull(groups = {edit.class,del.class},message = "id不能为空")
    private Integer id;

    /**  | 表字段 sub_item_id */
    @NotNull(groups = {edit.class,add.class},message = "小项id不能为空")
    private Integer subItemId;

    /**  | 表字段 raw_score */
    @NotNull(groups = {edit.class,add.class},message = "原始分数不能为空")
    private String rawScore;

    /**  | 表字段 conv_score */
    @NotNull(groups = {edit.class,add.class},message = "对应分数不能为空")
    private BigDecimal convScore;

    /** 男：1，女：2 ,通用0 | 表字段 sex_type */
    @NotNull(groups = {edit.class,add.class},message = "性别类型不能为空")
    private Integer sexType;

    public @interface add{};
    public @interface edit{};
    public @interface del{};
}
